import React, { Component } from 'react';

class Dome extends Component{
    constructor(props){
        super(props)
        console.log(props)
        console.log(this)
        console.log(this.props)
    }
    render(){
        return <h1>Demo组件{this.props.msg}</h1>
    }
}

class App extends Component {
  constructor(props){
      super(props);
  }
    render() {
        return (
            <div>
                <Dome msg="🐂"></Dome>
            </div>
        );
    }
}

export default App;
